package com.jason.kotlin.meta.architecture2.api

import com.jason.kotlin.meta.architecture2.model.*
import retrofit2.http.GET
import retrofit2.http.Path

interface SquareService {

    @GET("/user_article/list/{page}/json")
    suspend fun getSquareData(@Path("page") page: Int): WanApiResponse<WanApiPageResponse<ArticleBean>>

    @GET("/tree/json")
    suspend fun getSystemData(): WanApiResponse<MutableList<SystemBean>>


    @GET("/navi/json")
    suspend fun getNavigationData(): WanApiResponse<MutableList<NavigationBean>>
}